
import vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home/Home.vue'
import City from '@/components/city/City.vue'
vue.use(Router)
export default new Router({
  routes:[
    {
      path:'/',
      component:Home,
      name:'Home'
    },
    {
      path:'/City',
      component:City,
      name:'City'
    }
  ]
})

/* Vue.use(Router)

new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    }
  ]
})

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router */
